Output of variables
Pascal         C/C++
var
   c: char;
   i: integer;
   r: real;
   s: packed array[1..10]
of char;
#include <stdio.h>
char c;
int i;
float r;
char s[10];
   write(c);          printf(“%c”, & c);
   write(i);         printf(“%d”, & i);
   write(r);           printf(“%f”, & r);
   write(s);         printf(“%s”, & s);